package com.weiz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weiz.dto.Orders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    @Insert("insert into t_orders(order_id,customer_id,amount,status,create_date) values(#{orderId},#{customerId},#{amount},#{status},#{createDate})")
    int insert(Orders orders);
}
